﻿<?php
//echo "post page";
//print_r($_POST);
//echo "<br>";
//print_r($_FILES);

//1.获取上传文件对应的字典
$fileInfo=$_FILES["upfile"];
//2.获取上传文件的名称
$fileName=$fileInfo["name"];
//3.获取上传文件保存的临时路径
$filePath=$fileInfo["tmp_name"];
//echo $fileName;
//echo "<br>";
//echo $filePath;

//4.移动文件
move_uploaded_file($filePath,"./source/".$fileName);
?>
